﻿using System;
using System.Collections.Generic;
using Basic.Model.Entity;
using NHibernate;
using NHibernate.Criterion;

namespace Basic.Model.EntityManager
{
    public class DictionaryManager
    {
        public static void Add(ISession session, Dictionary an)
        {
            session.Save(an);
        }

        public static void Delete(ISession session, Dictionary an)
        {
            session.Delete(an);
        }

        public static void Update(ISession session, Dictionary an)
        {
            session.Update(an);
        }

        public static Dictionary Get(ISession session, int itemId)
        {
            return session.Get<Dictionary>(itemId);
        }
    }
}
